Reflection .NET API
Attachmate.Reflection.Emulation.IbmHosts Assembly / Attachmate.Reflection.Emulation.IbmHosts Namespace / IMacro Interface / RunMacro Method / RunMacro(MacroEnumerationOption,String,Object[]) Method
The location of the macro. MacroEnumerationOption.Document indicates that the macro resides in the session document's VBA project. MacroEnumerationOption.Common indicates that the macro resides in the Common VBA project.
The name of the macro to run.
Parameters to pass to the macro.


In This Topic
    RunMacro(MacroEnumerationOption,String,Object[]) Method
    In This Topic
    Runs a macro.
    Syntax
    'Declaration
     
    
    Overloads Sub RunMacro( _
       ByVal macroSource As MacroEnumerationOption, _
       ByVal macroName As String, _
       ByVal macroParameters() As Object _
    ) 
    'Usage
     
    
    Dim instance As IMacro
    Dim macroSource As MacroEnumerationOption
    Dim macroName As String
    Dim macroParameters() As Object
     
    instance.RunMacro(macroSource, macroName, macroParameters)

    Parameters

    macroSource
    The location of the macro. MacroEnumerationOption.Document indicates that the macro resides in the session document's VBA project. MacroEnumerationOption.Common indicates that the macro resides in the Common VBA project.
    macroName
    The name of the macro to run.
    macroParameters
    Parameters to pass to the macro.
    See Also